<!DOCTYPE html>
<html>
<head>
    <title>课程情况 - {$site_info.site_name|default=''}</title>
    <meta name="keywords" content="" />
    <meta name="description" content="">
    <include file="public@head"/>

</head>
<body class="body-white" >
<include file="public@nav" />
<div class="container tc-main">
    <div class="row">
        <div class="col-md-3">
            <include file="public@jiaxiaonav" />
        </div>
        <div class="col-md-9">
            <!--标题 -->
            <div class="personal-nav">
                <h2>课程情况</h2>
            </div>
            <!--标题 -->

            <!--课程情况 -->
            <div class="personal-class">
                <ul>
                    <foreach name="data" item="vo">
                    <li>
                        <h3>
                            {$vo.name}
                            <!--重新选座后台没有分配班级 vo.id eq $vo.class_id-->
                            <if condition="$vo.order_status neq 4 && isset($vo.pre_class_ids) && !empty($vo.pre_class_ids) && $vo.id eq $vo.class_id">
                                <a href="{:url('JiaXiaoTong/bing_ban',array('class_id'=>$vo.class_id,'pre_class_ids'=>$vo.pre_class_ids,'student_id'=>$student_id,'old_class_id'=>$vo['old_class_id']))}">重新选座</a>
                                <elseif condition="isset($vo.pre_class_ids) && !empty($vo.pre_class_ids) && $vo.id neq $vo.class_id && in_array($vo.class_id,explode(',',$vo.pre_class_ids))">
                                    <a href="{:url('JiaXiaoTong/bing_ban',array('class_id'=>$vo.class_id,'pre_class_ids'=>$vo.pre_class_ids,'student_id'=>$student_id,'old_class_id'=>$vo['old_class_id']))}">重新选座</a>
                                </elseif>
                                <else/>
                            </if>
                        </h3>
                        <dl class="info">
                            <dd>
                                <em>学生：</em>
                                <i>{$student_data.name|default=''}</i>
                            </dd>
                            <dd>
                                <em>校区：</em>
                                <i>{$vo.school}</i>
                            </dd>
                            <dd>
                                <em>教室：</em>
                                <i>{$vo.classroom_name|default=''}</i>
                            </dd>
                            <dd>
                                <em >班级：</em>
                                <i >{$vo.name|default=''}</i>
                            </dd>
                            <dd>
                                <em>开课时间：</em>
                                <i>{$vo.first_day}</i>
                            </dd>
                            <dd>
                                <em>课程日期：</em>
                                <i>{$vo.first_day}-{$vo.end_day}</i>
                            </dd>
                            <dd>
                                <em>授课老师：</em>
                                <i>{$vo.user_login}</i>
                            </dd>
                            <dd>
                                <em>课程状态：</em>
                                <if condition="$vo.order_status neq 4">
                                    <if condition="$vo.class_status==0">
                                        <i>未开课</i>
                                    <elseif condition="$vo.class_status==1">
                                        进行中
                                        </elseif>
                                        <else/>
                                        <i>已结课</i>
                                    </if>
                                <else/>
                                    <i>退课</i>
                                </if>

                            </dd>
                            <dd><em>课程数：</em><i>{$vo.schedule}/{$vo.course_hour}</i></dd>
                        </dl>



                        <dl class="continue" style="text-align: right;">
                            <a href="{:url('JiaXiaoTong/course_shecma_views',array('id'=>$vo.id,'student_id'=>$student_id))}">
                                课表和座位
                            </a>
                            <if condition="$vo.order_status neq 4">
                                    <a href="{:url('JiaXiaoTong/seehomework',array('id'=>$vo.id,'student_id'=>$student_id))}">
                                        作业
                                    </a>
                                <else/>
                                    <a href="{:url('JiaXiaoTong/seehomework',array('id'=>$vo.id,'student_id'=>$student_id,'tui'=>1))}">
                                        作业
                                    </a>
                                </if>
                            <!--退课之后不显示续班-->
                            <if condition="$vo.order_status neq 4">
                                <if condition="count($vo.xu) gt 0 && count($vo.xu) lt 4 && $vo.current_num lt $vo.total_num  && empty($vo.xu_class)">
                                    <a href="{:url('JiaXiaoTong/continue_class',array('id'=>$vo.id,'student_id'=>$student_id))}">续班</a>
                                    <else/>
                                    <a  class='disabled' href="#" id="continu_content" title="{$vo.continue_class_content}">
                                        续班
                                    </a>
                                </if>
                            </if>
                            <!--录音-->
                            <if condition="!empty($vo.asid)">
                                <!--<a href="{:url('JiaXiaoTong/down',array('asset_id'=>$vo.asid))}">{$vo.filename}</a>-->
                                <a href="{:url('JiaXiaoTong/down',array('asset_id'=>$vo.asid))}">录音</a>
                            </if>
                            <!--退课之后不显示续班-->
                        </dl>
                    </li>
                    </foreach>
                </ul>
                <div class="pagination">{$page|default=''}</div>
            </div>
        </div>
    </div>
</div>
        <!-- /container -->
<include file="public@footer" />
<include file="public@scripts" />

</body>

</html>